// TableResizer.h: interface for the CTableResizer class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TABLERESIZER_H__990D1B40_6BF7_4502_AD63_452F62A40D6B__INCLUDED_)
#define AFX_TABLERESIZER_H__990D1B40_6BF7_4502_AD63_452F62A40D6B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "TableChar.h"

class CTableResizer  
{
	typedef struct tagCrossNode
	{
		CString sc;
		CString sc_before;
		CString sc_after;
		int pos;
	} CrossNode;
public:
	CPoint m_initPtDrag;
	CPoint m_ptDrag;
	int m_moveStep;
	CRect m_moveRect;
	CRect m_tableRect;

	BOOL m_bMoveHorz;
	CArray<CrossNode, const CrossNode&> m_arrHorzCrossNode;

	BOOL m_bMoveVert;
	CArray<CrossNode, const CrossNode&> m_arrVertCrossNode;

	void DoDrag(CPoint pt);
	void SetNullScWithSpace(CString& sc);

	CTableResizer(CPoint pt, const CTableChar& tableChar);
	virtual ~CTableResizer();

};

#endif // !defined(AFX_TABLERESIZER_H__990D1B40_6BF7_4502_AD63_452F62A40D6B__INCLUDED_)
